compress/gzip.Reader.buf (field)
24 uses
compress/gzip (current package)
gunzip.go#L80: buf [512]byte
gunzip.go#L145: if i >= len(z.buf) {
gunzip.go#L148: z.buf[i], err = z.r.ReadByte()
gunzip.go#L152: if z.buf[i] > 0x7f {
gunzip.go#L155: if z.buf[i] == 0 {
gunzip.go#L157: z.digest = crc32.Update(z.digest, crc32.IEEETable, z.buf[:i+1])
gunzip.go#L162: for _, v := range z.buf[:i] {
gunzip.go#L167: return string(z.buf[:i]), nil
gunzip.go#L175: if _, err = io.ReadFull(z.r, z.buf[:10]); err != nil {
gunzip.go#L185: if z.buf[0] != gzipID1 || z.buf[1] != gzipID2 || z.buf[2] != gzipDeflate {
gunzip.go#L188: flg := z.buf[3]
gunzip.go#L189: if t := int64(le.Uint32(z.buf[4:8])); t > 0 {
gunzip.go#L195: hdr.OS = z.buf[9]
gunzip.go#L196: z.digest = crc32.ChecksumIEEE(z.buf[:10])
gunzip.go#L199: if _, err = io.ReadFull(z.r, z.buf[:2]); err != nil {
gunzip.go#L202: z.digest = crc32.Update(z.digest, crc32.IEEETable, z.buf[:2])
gunzip.go#L203: data := make([]byte, le.Uint16(z.buf[:2]))
gunzip.go#L227: if _, err = io.ReadFull(z.r, z.buf[:2]); err != nil {
gunzip.go#L230: digest := le.Uint16(z.buf[:2])
gunzip.go#L261: if _, err := io.ReadFull(z.r, z.buf[:8]); err != nil {
gunzip.go#L265: digest := le.Uint32(z.buf[:4])
gunzip.go#L266: size := le.Uint32(z.buf[4:8])
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |